<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js"></script>
    <script type="text/javascript" data-main="main" src="require.js"></script>
</head>

<body>
    <div id="app">
        <button onclick="test()">hehe</button>
        <task-app></task-app>
    </div>
    <script type="text/javascript">
        Vue.component('task-app',{
            template:'<h1></h1>',
        });
        new Vue({
            el:'#app',
            data: {},
        })
    function test() {
        require(['../app/comm'], function(a) {
            console.log(a.show());
        });
        console.log();
    }
    </script>
</body>

</html>
